import Vue from 'vue'
import Vuex from 'vuex'
import axios from 'axios'
import router from '@/router'
import { login, getUser, getCheckList } from '@/server/axios'
import user from '@/store/modules/user'
import checklist from '@/store/modules/checklist'

// 使用Cookie保存数据
import VueCookie from 'vue-cookie'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    user,
    checklist
  }
})
